import json

from config import BASE_DIR


def read_ihrm_data(filename):
    with open(BASE_DIR + filename, 'r', encoding="utf-8") as f:
        json_list = json.load(f)
        list_data = []
        for dict in json_list:
            list_data.append(tuple(dict.values()))
        return list_data


if __name__ == '__main__':

    print(read_ihrm_data("/data/ihrm_login_data.json"))
